<?php

namespace app;

use Cassandra\Exception\LogicException;

class Model
{
    public function model(string $name)
    {
        if (empty($name)) {
            return new LogicException('Class Not Funt');
        }

        $class = "app\\model\\{$name}";

        return new $class();
    }
}
